﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DesignPatternsAndObjectManagement.Singletons
{
    public class SimpleSingleton
    {
        public static SimpleSingleton? _instance;
        private SimpleSingleton() { }

        public static SimpleSingleton Instance
        {
            get
            {
                if(_instance == null)
                {
                    _instance = new SimpleSingleton();
                }
                return _instance;
            }
        }

    }
}
